package orm;

import java.util.HashSet;
import java.util.Set;

/**
 * AbstractGroup entity provides the base persistence definition of the Group
 * entity. @author MyEclipse Persistence Tools
 */

public abstract class AbstractGroup implements java.io.Serializable {

	// Fields

	private Integer groupId;
	private Buyer buyer;
	private Integer groupSize;
	private Set deals = new HashSet(0);

	// Constructors

	/** default constructor */
	public AbstractGroup() {
	}

	/** minimal constructor */
	public AbstractGroup(Buyer buyer, Integer groupSize) {
		this.buyer = buyer;
		this.groupSize = groupSize;
	}

	/** full constructor */
	public AbstractGroup(Buyer buyer, Integer groupSize, Set deals) {
		this.buyer = buyer;
		this.groupSize = groupSize;
		this.deals = deals;
	}

	// Property accessors

	public Integer getGroupId() {
		return this.groupId;
	}

	public void setGroupId(Integer groupId) {
		this.groupId = groupId;
	}

	public Buyer getBuyer() {
		return this.buyer;
	}

	public void setBuyer(Buyer buyer) {
		this.buyer = buyer;
	}

	public Integer getGroupSize() {
		return this.groupSize;
	}

	public void setGroupSize(Integer groupSize) {
		this.groupSize = groupSize;
	}

	public Set getDeals() {
		return this.deals;
	}

	public void setDeals(Set deals) {
		this.deals = deals;
	}

}